package com.biz.primus.management.tms.feign;

import com.biz.primus.model.tms.vo.UpgradeAddReqVo;
import com.biz.primus.model.tms.vo.UpgradeDetailVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * UpgradeFeignClient
 *
 * @author JKLiues
 * @date 2017年11月27日
 */
@FeignClient(qualifier = "upgradedFeignClient", name = "service-tms")
public interface UpgradeFeignClient {

    /**
     * 通过app系统查询版本升级配置
     *
     * @param os 系统
     * @return
     */
    @GetMapping("soa/upgradeService/findByOs")
    List<UpgradeDetailVo> findByOs(String os);

    /**
     * 升级配置删除（逻辑删除）
     *
     * @param id 配置ID
     */
    @PostMapping("soa/upgradeService/disable")
    void disable(Long id);


    /**
     * 添加配置
     *
     * @param reqVo 添加请求
     */
    @PostMapping("soa/upgradeService/save")
    void save(UpgradeAddReqVo reqVo);
}